package pl.edu.mimuw.irs.core.util.persistence;

import java.io.InputStream;
import java.io.OutputStream;

public interface IPersistenceManager {
	
	public Object loadFromFile(String file) throws Exception;
	public Object loadFromStream(InputStream stream) throws Exception;

	public void writeToFile(Object object, String file) throws Exception;
	public void writeToStream(Object object, OutputStream stream) throws Exception;

	public InputStream objectAsInputStream(Object object) throws Exception;
	
}
